//
//  mvCollectionViewCell.swift
//  groupTaskTwo
//
//  Created by 向银泉 on 16/11/3.
//  Copyright © 2016年 向银泉. All rights reserved.
//

import UIKit
import Kingfisher
class mvCollectionViewCell: UICollectionViewCell {

    @IBOutlet weak var countLabel: UILabel!
    @IBOutlet weak var nameLabel: UILabel!
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var coverImageView: UIImageView!
    var model:MusicModel? = nil{
        didSet{
            self.coverImageView.kf_setImageWithURL(NSURL.init(string: (model?.posterPic)!)!, placeholderImage: UIImage.init(named: "110.jpg"))
            self.countLabel.text = "播放数量:  \(model!.totalViews)"
            self.nameLabel.text = model!.artistName
            self.titleLabel.text = model!.title
        }
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

}
